package com.li.core;

public class RequestEnvelope<K, V> implements java.io.Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private RequestEnvelopeHeader header;
	private RequestEnvelopeBody<K, V> body;
	
	public RequestEnvelope(){
		this.body = new RequestEnvelopeBody<K, V>();
		this.header  = new RequestEnvelopeHeader();
	}

	public void addParameter(K key, V value){
		this.body.add(key, value);
	}
	
	public V getParameter(K key){
		return this.body.get(key);
	}
	
	public RequestEnvelopeBody<K, V>  getBody(){
		return this.body;
	}
}
